<div class="bjui-pageContent">
    <form action="${wwwroot}/admin/subject/save" id="editForm" data-toggle="validate" data-alertmsg="false" reloadNavtab="true">
        <input type="hidden" name="id" value="${(subject.id)!}" />
        <div class="pageFormContent" data-layout-h="0">
            <table class="table table-condensed table-hover" width="100%">
                <tbody>
                <tr>
                    <td colspan="2">
                        <label for="subjectNo" class="control-label x85">提交记录号：</label>
                        <input type="text" name="subjectNo" cols="70" id="subjectNo" value="${(subject.subjectNo)!}"  >
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <label for="reason" class="control-label x85">提交原因：</label>
                        <textarea  name="reason" id="reason" cols="70" rows="2" data-toggle="autoheight" data-rule="required">${(subject.reason)!}</textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <label for="updateLog" class="control-label x85">更新日志：</label>
                        <textarea  name="updateLog" id="updateLog" cols="70" rows="2" data-toggle="autoheight" >${(subject.updateLog)!}</textarea>
                    </td>
                </tr>
                <#--<tr>-->
                    <#--<td>-->
                        <#--<label for="accountNote" class="control-label x100">记账规则说明：</label>-->
                        <#--<input type="text" name="accountNote" id="accountNote" value="${(subject.accountNote)!}"  >-->
                    <#--</td>-->
                    <#--<td>-->
                        <#--<label for="financeNote" class="control-label x100">财务影响说明：</label>-->
                        <#--<input type="text" name="financeNote" id="financeNote" value="${(subject.financeNote)!}"  >-->
                    <#--</td>-->
                <#--</tr>-->
                <tr>
                    <td colspan="2">
                        <label for="updateAdvice" class="control-label x85">备注：</label>
                        <textarea  name="updateAdvice" id="updateAdvice" cols="70" rows="2" data-toggle="autoheight" >${(subject.updateAdvice)!}</textarea>
                    </td>
                </tr>
                <#--<tr>-->
                    <#--<td colspan="2">-->
                        <#--<label for="updateMethod" class="control-label x85">更新方法：</label>-->
                        <#--<textarea  name="updateMethod" id="updateMethod" cols="70" rows="2" data-toggle="autoheight" data-rule="required">${(subject.updateMethod)!}</textarea>-->
                    <#--</td>-->
                <#--</tr>-->
                </tbody>
            </table>
            <div style="height:20%; overflow:hidden;">
                <fieldset style="height:100%;">
                    <legend>业务单元</legend>
                    <div style="height:94%; overflow:hidden;">
                    <#list bizUnits as bizUnit>
                        <#if subjectBizUnitMap??&&subjectBizUnitMap[bizUnit.unitName]??>
                            <#assign checked =true/>
                        <#else>
                            <#assign checked =false/>
                        </#if>
                        <input type="checkbox" name="bizUnitArray"  value="${(bizUnit.unitName)!}" data-toggle="icheck" data-label="${(bizUnit.note)!}" <#if checked>checked</#if>>
                    </#list>
                    </div>
                </fieldset>
            </div>
            <div style="height:20%; overflow:hidden;">
                <fieldset style="height:100%;">
                    <legend>业务类型</legend>
                    <div  style="height:94%; overflow:hidden;">
                    <#list bizTypes as bizType>
                        <#if subjectBizTypeMap??&&subjectBizTypeMap[bizType.typeName]??>
                            <#assign checked =true/>
                        <#else>
                            <#assign checked =false/>
                        </#if>
                        <input type="checkbox" name="bizTypeArray"  value="${(bizType.typeName)!}" data-toggle="icheck" data-label="${(bizType.note)!}" <#if checked>checked</#if>>
                    </#list>
                    </div>
                </fieldset>
            </div>
            <div style="height:20%; overflow:hidden;">
                    <#include "include/artifacts.ftl">
            </div>
        </div>
</form>
</div>
<div class="bjui-pageFooter" >
    <ul>
        <li><button type="button" class="btn btn-close" data-icon="close">取消</button></li>
        <li><button type="submit" class="btn btn-success" data-icon="save">保存</button></li>
    </ul>
</div>
